package com.itheima.a02mycharstream;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterDemo2 {
    public static void main(String[] args) throws IOException {
        //探索字符流写入缓冲区

        //创建对象
        FileWriter fw=new FileWriter("myio\\a.txt");

        //写入
//        for (int i = 0; i < 8192; i++) {
//            fw.write(98);
//        }
        //fw.flush();
        System.out.println("-----");

        fw.write(97);

        //fw.flush();
//        //释放资源
          fw.close();
    }
}
